<button class="layui-btn layui-btn-sm" onclick="addFormGrid()">
	<i class="layui-icon layui-icon-add-1"></i> ${button.name!'新增'}
</button>
<script type="text/javascript">
    var addFormGrid = function () {
		var ID = 'grid';
		
    	var width = ${menu.config.params.width!'720'};
    	var height = ${menu.config.params.height!'undefined'};
    	var url = '/form/add/${object.code}';
		dialog(ID, '${I18N(button.name)} ${object.name}', url , width, height);
    }
</script>